package com.chong.activiti.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author chong
 * @create 2020/6/4
 * Desc: 公共返回结果
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public abstract class BaseApiResponse<T> implements Serializable {
    //是否成功
    public Boolean success;
    //返回的文本描述消息
    public String msg;
    //返回的状态编码
    public Integer code = 0;
    private T data;
}
